import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);


export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        // {
        //     path: '/',
        //     component: () => import(/* webpackChunkName: "login" */ '../components/common/Home.vue'),
        //     meta: { title: '登录' },
        //     children: [
        //         {
        //             path: '/404',
        //             component:resolve => require(['../components/page/404.vue'], resolve),
        //             //  () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
        //             meta: { title: '404' }
        //         },
        //     ]    
        // },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        // {
        //     path: '*',
        //     redirect: '/404'
        // }
    ]
});



